﻿@model RonYee.Models.Book

@{
    ViewBag.Title = "图书详细";
    Layout = "~/Views/Shared/_LayoutOfSecondPage.cshtml";
}

<div class="box_padding">
    <h3><i class="ui-icons"></i> 图书详细</h3>
    <div class="box_top ui-icons"></div>
    <div class="box_bg"><div class="box_padding">
    <div class="border_line">
        <table width="100%" border="0" cellpadding="0" cellspacing="0"><tbody>
        <tr>
            <td class="tdName" width="10%">ISBN</td><td class="tdData" width="40%">@Html.DisplayFor(model => model.ISBN)</td>
            <td class="tdName" width="10%">书名</td><td class="tdData" width="40%">@Html.DisplayFor(model => model.BookName)</td>
        </tr>
        <tr>
            <td class="tdName">出版社</td><td class="tdData">@Html.DisplayFor(model => model.Publisher)</td>
            <td class="tdName">版本号</td><td class="tdData">@Html.DisplayFor(model => model.PublishNum)</td>
        </tr>
        <tr>
            <td class="tdName">作者</td><td class="tdData">@Html.DisplayFor(model => model.Author)</td>
            <td class="tdName">库存数</td><td class="tdData">@Html.DisplayFor(model => model.BookCount)</td>
        </tr>
        <tr>
            <td class="tdName">原价</td><td class="tdData">@Html.DisplayFor(model => model.OriginalPrice)</td>
            <td class="tdName">现价</td><td class="tdData">@Html.DisplayFor(model => model.CurrentPrice)</td>
        </tr>
        <tr>
            <td class="tdName">图书类别</td>
            <td class="tdData">
             @{
                 int n1 = Convert.ToInt32(ViewBag.type1);
                 if(n1==1)
                 {
                     <label>公共基础</label>
                 }
                 else if(n1==2)
                 {
                     <label>金融投资</label>
                 }
                 else if(n1==3)
                 {
                     <label>国际经济与贸易</label>
                 }
                 else if(n1==4)
                 {
                     <label>信息技术</label>
                 }
                 else if(n1==5)
                 {
                     <label>财政税收</label>
                 }
                 else if(n1==6)
                 {
                     <label>审计会计</label>
                 }
                 else if(n1==7)
                 {
                     <label>工商管理</label>
                 }
                 else if(n1==8)
                 {
                     <label>保险精算</label>
                 }
                 else if(n1==9)
                 {
                     <label>法律</label>
                 }
                 else if(n1==10)
                 {
                     <label>语言</label>
                 }
                 else if (n1 == 11)
                 {
                     <label>考证</label>
                 }
                 else if (n1 == 12)
                 {
                     <label>数学理工类</label>
                 }else
                 {
                     <label>其他</label>
                 }
                }
            </td>
            <td class="tdName"></td>
            <td class="tdData"></td>
        </tr>
        <tr>
            <td class="tdName">图书封面</td>
            <td class="tdData"><img src="@Url.Content(ViewBag.image)" alt="" /></td>
            <td class="tdName"></td>
            <td class="tdData"></td>
        </tr>
        </tbody></table></div>
    </div></div>
    <div class="box_down ui-icons"></div>
</div>
                
<div class="line_top">
    <a href="@Url.Action("Edit", "Book", new { id = Model.BookId })">
       <input class="Button1 ui-icons" id="Button1" title="Edit" value="编辑" type="button" />
    </a>
</div>